package com.chenliang.check.biz;

import com.alibaba.fastjson.JSON;
import com.chenliang.check.vo.InfoVO;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;


/**
 * @program: springboot_all
 * @description:
 * @author: 陈亮
 * @create: 2022-04-23 15:29
 */
@RestController
@RequestMapping("/demo")
public class DemoBiz {


    @PostMapping("/getInfo")
    public String getInfo(@Valid InfoVO vo) {
        return JSON.toJSONString(vo);
    }
}
